<div class="yearworkarea">
    <nz-tabset nzAnimated="false" [nzTabBarStyle]="{'margin-bottom':'0'}" [nzSelectedIndex]="tabsetIndex"
        (nzSelectedIndexChange)="tabsetChange($event)">
        <nz-tab nzTitle="段年表">
            <div *ngIf="paramStatus == 'gcs' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('1','提报')" nzGhost><i nz-icon
                        nzType="highlight"></i>提报</button>
                <button nz-button nzType="primary" (click)="yearShowModal()" nzGhost><i nz-icon
                        nzType="plus"></i>新编</button>
                <button nz-button nzType="primary" (click)="operateShowModal('','删除')" nzGhost><i nz-icon
                        nzType="delete"></i>删除</button>
            </div>
            <div *ngIf="paramStatus == 'jskz' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('2','批准')" nzGhost><i nz-icon
                        nzType="check-circle" nzTheme="outline"></i>批准</button>
                <button nz-button nzType="primary" (click)="operateShowModal('3','驳回')" nzGhost><i nz-icon
                        nzType="close-circle" nzTheme="outline"></i>驳回</button>
            </div>
            <div *ngIf="paramStatus == 'dz' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('4','批准')" nzGhost><i nz-icon
                        nzType="check-circle" nzTheme="outline"></i>批准</button>
                <button nz-button nzType="primary" (click)="operateShowModal('5','驳回')" nzGhost><i nz-icon
                        nzType="close-circle" nzTheme="outline"></i>驳回</button>
            </div>
            <div *ngIf="paramStatus == 'qzbh' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('6','强制驳回')" nzGhost><i nz-icon
                        nzType="highlight"></i>强制驳回</button>
            </div>
        </nz-tab>
        <nz-tab nzTitle="车间年表">
            <div *ngIf="paramStatus == 'gcs' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('2','批准')" nzGhost><i nz-icon
                        nzType="check-circle" nzTheme="outline"></i>批准</button>
                <button nz-button nzType="primary" (click)="operateShowModal('3','驳回')" nzGhost><i nz-icon
                        nzType="close-circle" nzTheme="outline"></i>驳回</button>
            </div>
            <div *ngIf="paramStatus == 'jskz' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('4','批准')" nzGhost><i nz-icon
                        nzType="check-circle" nzTheme="outline"></i>批准</button>
                <button nz-button nzType="primary" (click)="operateShowModal('5','驳回')" nzGhost><i nz-icon
                        nzType="close-circle" nzTheme="outline"></i>驳回</button>
            </div>
            <div *ngIf="paramStatus == 'dz' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('7','批准')" nzGhost><i nz-icon
                        nzType="check-circle" nzTheme="outline"></i>批准</button>
                <button nz-button nzType="primary" (click)="operateShowModal('8','驳回')" nzGhost><i nz-icon
                        nzType="close-circle" nzTheme="outline"></i>驳回</button>
            </div>
            <div *ngIf="paramStatus == 'qzbh' && step1 == 1" class="p10">
                <button nz-button nzType="primary" (click)="operateShowModal('6','强制驳回')" nzGhost><i nz-icon
                        nzType="highlight"></i>强制驳回</button>
            </div>
            <div *ngIf="paramStatus == 'jskz' && step1 == 1" style="height:10px;line-height:10px;"></div>
            <div *ngIf="paramStatus == 'dz' && step1 == 1" style="height:10px;line-height:10px;"></div>
        </nz-tab>
        <nz-tab nzTitle="工区年表">
            <div *ngIf="paramStatus == 'dz' && step1 == 1" style="height:10px;line-height:10px;"></div>
        </nz-tab>
    </nz-tabset>

    <div *ngIf="step1" class="yearworkwrap">
        <div class="table-nzbordered">
            <nz-table #rowSelectionTable [nzScroll]="lockHeadScroll" [nzLoadingDelay]="1000" [nzShowPagination]="false"
                [nzFrontPagination]="false" [nzPageSize]="yearpageValue" [nzData]="data"
                (nzCurrentPageDataChange)="currentPageDataChange($event)" (nzPageIndexChange)="refreshStatus()"
                (nzPageSizeChange)="refreshStatus()">
                <thead>
                    <tr>
                        <th nzWidth="50px" nzAlign="center" nzShowCheckbox [(nzChecked)]="allChecked"
                            [nzIndeterminate]="indeterminate" (nzCheckedChange)="checkAll($event)"></th>
                        <th nzWidth="100px" nzAlign="center">序号</th>
                        <th nzWidth="25%" nzAlign="center">年表</th>
                        <th nzAlign="center">状态</th>
                        <th nzWidth="25%">审批意见</th>
                        <th nzWidth="200px" nzAlign="center" *ngIf="paramStatus != 'qzbh'">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let item1 of rowSelectionTable.data;index as i" [tabindex]="i">
                        <td nzAlign="center" nzShowCheckbox [(nzChecked)]="item1.checked" [nzDisabled]="item1.disabled"
                            (nzCheckedChange)="refreshStatus()"></td>
                        <td style="display:none">{{item1.N_ID}}</td>
                        <td nzAlign="center">{{item1.RN}}</td>
                        <td>{{item1.SHOWNAME}}</td>
                        <td nzAlign="center">
                            <span nzTooltipTitle="查看审批流程信息" nzTooltipPlacement="bottom" nz-tooltip class="flowInfo"
                                (click)="statusShowModal(item1.N_ID)">{{item1.STATUS}}</span>
                        </td>
                        <td>{{item1.APP_COMMENTS}}</td>
                        <td nzAlign="center" *ngIf="paramStatus != 'qzbh'">
                            <button
                                (click)="startstep(rowpageTable2,item1.N_YEAR,item1.VC_ORG$ID,listpageValue,'',item1.VC_LINE$TYPE,item1.N_ID,item1.VC_STATUS)"
                                nz-button nzType="primary" nzSize="small" nzGhost>
                                <ng-container *ngIf="tabsetIndex == 0">
                                    <ng-container
                                        *ngIf="paramStatus == 'gcs' && (item1.VC_STATUS == '0' || item1.VC_STATUS == '3')">
                                        <i nz-icon nzType="tool"></i>
                                    </ng-container>
                                    <ng-container
                                        *ngIf="paramStatus == 'gcs' && item1.VC_STATUS != '0' && item1.VC_STATUS != '3'">
                                        <i nz-icon nzType="file-text"></i>
                                    </ng-container>

                                    <ng-container *ngIf="paramStatus == 'jskz' && item1.VC_STATUS == '1'">
                                        <i nz-icon nzType="tool"></i>
                                    </ng-container>
                                    <ng-container *ngIf="paramStatus == 'jskz' && item1.VC_STATUS != '1'">
                                        <i nz-icon nzType="file-text"></i>
                                    </ng-container>
                                </ng-container>
                                <ng-container *ngIf="tabsetIndex == 1">
                                    <ng-container *ngIf="paramStatus == 'gcs' && item1.VC_STATUS == '1'">
                                        <i nz-icon nzType="tool"></i>
                                    </ng-container>
                                    <ng-container *ngIf="paramStatus == 'gcs' && item1.VC_STATUS != '1'">
                                        <i nz-icon nzType="file-text"></i>
                                    </ng-container>

                                    <ng-container *ngIf="paramStatus == 'jskz'">
                                        <i nz-icon nzType="file-text"></i>
                                    </ng-container>
                                </ng-container>
                                <ng-container *ngIf="paramStatus == 'dz'">
                                    <i nz-icon nzType="file-text"></i>
                                </ng-container>
                                {{item1.SHOWCOL}}
                            </button>
                        </td>
                    </tr>
                </tbody>
            </nz-table>
        </div>
        <div class="pageWrap">
            每页
            <nz-select [(ngModel)]="yearselectedValue" (ngModelChange)="yearselectedChange()">
                <nz-option nzValue="10" nzLabel="10"></nz-option>
                <nz-option nzValue="50" nzLabel="50"></nz-option>
                <nz-option nzValue="100" nzLabel="100"></nz-option>
                <nz-option nzValue="200" nzLabel="200"></nz-option>
            </nz-select> 条&nbsp;&nbsp;&nbsp;总共<span class="pageTotal">{{pageTotal1}}</span>条
        </div>
        <div class="pageInation">
            <nz-pagination [nzPageSize]="yearselectedValue" [nzPageIndex]="pageIndexTable1" [nzTotal]="rowTotalTable1"
                (nzPageIndexChange)="rowChangeTable1($event)"></nz-pagination>
        </div>
    </div>

    <div *ngIf="step2" class="yearworkwrap">
        <div class="p10">
            <button nz-button nzType="primary" (click)="backstep()" nzGhost><i nz-icon nzType="rollback"></i>返回</button>
            <button *ngIf="addWorkButton" nz-button nzType="primary" (click)="addWorkShowModal()" nzGhost><i nz-icon
                    nzType="plus"></i>新增作业</button>
            <!-- <span style="margin-left:8px">
                <app-yearfilter [yesorno]="'1'" (childOuter)="yearFilterData($event)"></app-yearfilter>
            </span> -->
        </div>
        <div class="table-nzbordered">
            <nz-table #rowSelectionTable2 [nzScroll]="lockHeadScroll" [nzLoadingDelay]="1000" [nzShowPagination]="false"
                [nzFrontPagination]="false" [nzPageSize]="listpageValue" [nzData]="data2"
                (nzCurrentPageDataChange)="currentPageDataChange2($event)">
                <thead>
                    <tr>
                        <th nzAlign="center" nzWidth="60px">序号</th>
                        <th nzAlign="center" nzWidth="100px">作业类型</th>
                        <th nzAlign="center">作业项目</th>
                        <th nzAlign="center" nzWidth="100px">周期</th>
                        <th nzAlign="center" nzWidth="100px">单位</th>
                        <th nzAlign="center" nzWidth="100px">工作数量</th>
                        <th nzAlign="center" nzWidth="100px">合计工时</th>
                        <th nzAlign="center" nzWidth="300px">工作设备名称</th>
                        <th nzAlign="center" nzWidth="300px">备注</th>
                        <th nzAlign="center" nzWidth="150px">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <ng-container *ngFor="let item2 of rowSelectionTable2.data;index as i">
                        <tr *ngIf="item2.RN" [tabindex]="i">
                            <td nzAlign="center">{{item2.RN}}</td>
                            <td [attr.rowspan]="item2.VC_CLASS_Count" *ngIf="item2.VC_CLASS_Start">
                                {{item2.VC_CLASS}}
                            </td>
                            <td [attr.rowspan]="item2.VC_ITEM$NAME_Count" *ngIf="item2.VC_ITEM$NAME_Start">
                                {{item2.VC_ITEM$NAME}}
                            </td>
                            <td nzAlign="center" [attr.rowspan]="item2.VC_RECYCLE$DESC_Count"
                                *ngIf="item2.VC_RECYCLE$DESC_Start">
                                {{item2.VC_RECYCLE$DESC}}
                            </td>
                            <td nzAlign="center" [attr.rowspan]="item2.VC_UNIT_Count" *ngIf="item2.VC_UNIT_Start">
                                {{item2.VC_UNIT}}</td>
                            <td nzAlign="center" [attr.rowspan]="item2.DEVSUMS_Count" *ngIf="item2.DEVSUMS_Start">
                                {{item2.DEVSUMS}}
                            </td>
                            <td nzAlign="center">{{item2.TOTLEWT}}</td>
                            <td nzAlign="center">
                                <div [innerHTML]="item2.REDEVS"></div>
                            </td>
                            <!--根据作业项目来合并备注-->
                            <td [attr.rowspan]="item2.VC_ITEM$NAME_Count" *ngIf="item2.VC_ITEM$NAME_Start">
                                <div [innerHTML]="item2.REVC_NOTE"></div>
                            </td>
                            <!--根据作业项目来合并操作-->
                            <td nzAlign="center" [attr.rowspan]="item2.VC_ITEM$NAME_Count"
                                *ngIf="item2.VC_ITEM$NAME_Start">
                                <ng-container *ngIf="tabsetIndex == 0">
                                    <ng-container
                                        *ngIf="paramStatus == 'gcs' && (item2.VC_STATUS == '0' || item2.VC_STATUS == '3')">
                                        <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'edit')" nz-button
                                            nzType="primary" nzSize="small" nzGhost>
                                            <i nz-icon nzType="tool"></i>{{item2.SHOWCOL}}
                                        </button>
                                        <button nz-button nzType="primary" nzSize="small" nzGhost nz-popconfirm
                                            nzPopconfirmTitle="删除作业项目而不是删除车站，确认删除吗？"
                                            (nzOnConfirm)="deleteItem(item2.N_DID)">
                                            <i nz-icon nzType="delete"></i>删除
                                        </button>
                                    </ng-container>
                                    <ng-container
                                        *ngIf="paramStatus == 'gcs' && item2.VC_STATUS != '0' && item2.VC_STATUS != '3'">
                                        <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'view')" nz-button
                                            nzType="primary" nzSize="small" nzGhost>
                                            <i nz-icon nzType="file-text"></i>{{item2.SHOWCOL}}
                                        </button>
                                    </ng-container>

                                    <ng-container
                                        *ngIf="paramStatus == 'jskz' && (item2.VC_STATUS == '1' || item2.VC_STATUS == '5')">
                                        <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'edit')" nz-button
                                            nzType="primary" nzSize="small" nzGhost>
                                            <i nz-icon nzType="tool"></i>{{item2.SHOWCOL}}
                                        </button>
                                        <button nz-button nzType="primary" nzSize="small" nzGhost nz-popconfirm
                                            nzPopconfirmTitle="删除作业项目而不是删除车站，确认删除吗？"
                                            (nzOnConfirm)="deleteItem(item2.N_DID)">
                                            <i nz-icon nzType="delete"></i>删除
                                        </button>
                                    </ng-container>
                                    <ng-container
                                        *ngIf="paramStatus == 'jskz' && item2.VC_STATUS != '1' && item2.VC_STATUS != '5'">
                                        <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'view')" nz-button
                                            nzType="primary" nzSize="small" nzGhost>
                                            <i nz-icon nzType="file-text"></i>{{item2.SHOWCOL}}
                                        </button>
                                    </ng-container>
                                </ng-container>

                                <ng-container *ngIf="tabsetIndex == 1">
                                    <ng-container *ngIf="paramStatus == 'gcs' && item2.VC_STATUS == '1'">
                                        <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'edit')" nz-button
                                            nzType="primary" nzSize="small" nzGhost>
                                            <i nz-icon nzType="tool"></i>{{item2.SHOWCOL}}
                                        </button>
                                        <button nz-button nzType="primary" nzSize="small" nzGhost nz-popconfirm
                                            nzPopconfirmTitle="删除作业项目而不是删除车站，确认删除吗？"
                                            (nzOnConfirm)="deleteItem(item2.N_DID)">
                                            <i nz-icon nzType="delete"></i>删除
                                        </button>
                                    </ng-container>
                                    <ng-container *ngIf="paramStatus == 'gcs' && item2.VC_STATUS != '1'">
                                        <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'view')" nz-button
                                            nzType="primary" nzSize="small" nzGhost>
                                            <i nz-icon nzType="file-text"></i>{{item2.SHOWCOL}}
                                        </button>
                                    </ng-container>

                                    <ng-container *ngIf="paramStatus == 'jskz'">
                                        <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'view')" nz-button
                                            nzType="primary" nzSize="small" nzGhost>
                                            <i nz-icon nzType="file-text"></i>{{item2.SHOWCOL}}
                                        </button>
                                    </ng-container>
                                </ng-container>

                                <ng-container *ngIf="paramStatus == 'dz'">
                                    <button (click)="maintain(i,item2.N_ITEM$ID,item2.N_ID,'view')" nz-button
                                        nzType="primary" nzSize="small" nzGhost>
                                        <i nz-icon nzType="file-text"></i>{{item2.SHOWCOL}}
                                    </button>
                                </ng-container>
                            </td>
                        </tr>
                    </ng-container>
                </tbody>
            </nz-table>
        </div>
        <div class="pageWrap">
            每页
            <nz-select [(ngModel)]="listselectedValue" (ngModelChange)="listselectedChange()">
                <nz-option nzValue="10" nzLabel="10"></nz-option>
                <nz-option nzValue="50" nzLabel="50"></nz-option>
                <nz-option nzValue="100" nzLabel="100"></nz-option>
                <nz-option nzValue="200" nzLabel="200"></nz-option>
            </nz-select> 条&nbsp;&nbsp;&nbsp;总共<span class="pageTotal">{{pageTotal2}}</span>条
        </div>
        <div class="pageInation">
            <nz-pagination [nzPageSize]="listselectedValue" [nzPageIndex]="pageIndexTable2" [nzTotal]="rowTotalTable2"
                (nzPageIndexChange)="rowChangeTable2($event)"></nz-pagination>
        </div>
    </div>

    <div [ngStyle]="{'display':showstep3}" class="yearworkwrap">
        <app-maintenance #mtecom (saved)="mainBackPage()" [vcCj]="tabsTypevcCj"></app-maintenance>
    </div>

    <div *ngIf="cjstep1" class="yearworkwrap">
        <div style="height:10px;line-height:10px"></div>
        <div class="table-nzbordered">
            <nz-table #chejianTable [nzScroll]="lockHeadScroll" [nzLoadingDelay]="1000" [nzData]="datachejian"
                [nzShowPagination]="false" [nzFrontPagination]="false">
                <thead>
                    <tr>
                        <th nzWidth="200px" nzAlign="center">序号</th>
                        <th nzAlign="center">车站名称</th>
                        <th nzWidth="350px" nzAlign="center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let cj of chejianTable.data;index as i" [tabindex]="i">
                        <td nzAlign="center">{{+i+1}}</td>
                        <td nzAlign="center">{{cj.opName}}</td>
                        <td nzAlign="center"><button (click)="chejianData2(i)" nz-button nzType="primary" nzSize="small"
                                nzGhost>
                                <i nz-icon nzType="file-text"></i> 查看
                            </button>
                        </td>
                    </tr>
                </tbody>
            </nz-table>
        </div>
    </div>

    <div *ngIf="cjstep2" class="yearworkwrap">
        <div class="table-nzbordered">
            <div class="p10">
                <button nz-button nzType="primary" (click)="cjbackstep('2')" nzGhost><i nz-icon
                        nzType="rollback"></i>返回</button>
                <button nz-button nzType="primary" (click)="operateShowModal('6','强制驳回')" nzGhost><i nz-icon
                        nzType="highlight"></i>强制驳回</button>
            </div>
            <nz-table #chejianTable2 [nzScroll]="lockHeadScroll" [nzLoadingDelay]="1000" [nzShowPagination]="false"
                [nzFrontPagination]="false" [nzPageSize]="yearpageValue" [nzData]="datachejian2"
                (nzCurrentPageDataChange)="currentPageDataChange($event)" (nzPageIndexChange)="refreshStatus()"
                (nzPageSizeChange)="refreshStatus()">
                <thead>
                    <tr>
                        <th nzWidth="50px" nzAlign="center" nzShowCheckbox [(nzChecked)]="allChecked"
                            [nzIndeterminate]="indeterminate" (nzCheckedChange)="checkAll($event)"></th>
                        <th nzWidth="50px" nzAlign="center">序号</th>
                        <th nzWidth="150px" nzAlign="center">年表</th>
                        <th nzWidth="150px" nzAlign="center">状态</th>
                        <th nzAlign="center">审批意见</th>
                        <th nzWidth="150px" nzAlign="center" *ngIf="paramStatus != 'qzbh'">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let item1 of chejianTable2.data;index as i" [tabindex]="i">
                        <td nzAlign="center" nzShowCheckbox [(nzChecked)]="item1.checked" [nzDisabled]="item1.disabled"
                            (nzCheckedChange)="refreshStatus()"></td>
                        <td nzAlign="center" style="display:none">{{item1.N_ID}}</td>
                        <td nzAlign="center">{{item1.RN}}</td>
                        <td>{{item1.SHOWNAME}}</td>
                        <td nzAlign="center">
                            <span nzTooltipTitle="查看审批流程信息" nzTooltipPlacement="bottom" nz-tooltip class="flowInfo"
                                (click)="statusShowModal(item1.N_ID)">{{item1.STATUS}}</span>
                        </td>
                        <td>{{item1.APP_COMMENTS}}</td>
                        <td nzAlign="center" *ngIf="paramStatus != 'qzbh'">
                            <button
                                (click)="chejianData3(rowpageTable1,item1.N_YEAR,item1.VC_ORG$ID,listpageValue,'',item1.VC_LINE$TYPE,item1.N_ID)"
                                nz-button nzType="primary" nzSize="small" nzGhost>
                                <i nz-icon nzType="file-text"></i> 查看
                            </button>
                        </td>
                    </tr>
                </tbody>
            </nz-table>
        </div>
        <div class="pageWrap">
            每页
            <nz-select [(ngModel)]="yearselectedValue" (ngModelChange)="yearselectedChange()">
                <nz-option nzValue="10" nzLabel="10"></nz-option>
                <nz-option nzValue="50" nzLabel="50"></nz-option>
                <nz-option nzValue="100" nzLabel="100"></nz-option>
                <nz-option nzValue="200" nzLabel="200"></nz-option>
            </nz-select> 条&nbsp;&nbsp;&nbsp;总共<span class="pageTotal">{{pageTotal1}}</span>条
        </div>
        <div class="pageInation">
            <nz-pagination [nzPageSize]="yearselectedValue" [nzPageIndex]="pageIndexTable1" [nzTotal]="rowTotalTable1"
                (nzPageIndexChange)="rowChangeTable1($event)"></nz-pagination>
        </div>
    </div>

    <div *ngIf="cjstep3" class="yearworkwrap">
        <div class="p10">
            <button nz-button nzType="primary" (click)="cjbackstep('3')" nzGhost><i nz-icon
                    nzType="rollback"></i>返回</button>
            <button *ngIf="addWorkButton" nz-button nzType="primary" (click)="addWorkShowModal()" nzGhost><i nz-icon
                    nzType="plus"></i>新增作业</button>
            <!-- <span style="margin-left:8px">
                <app-yearfilter [yesorno]="'1'" (childOuter)="yearFilterData($event)"></app-yearfilter>
            </span> -->
        </div>
        <div class="table-nzbordered">
            <nz-table #chejianTable3 [nzScroll]="lockHeadScroll" [nzLoadingDelay]="1000" [nzShowPagination]="false"
                [nzFrontPagination]="false" [nzPageSize]="listpageValue" [nzData]="datachejian3">
                <thead>
                    <tr>
                        <th nzAlign="center" nzWidth="60px">序号</th>
                        <th nzAlign="center" nzWidth="100px">作业类型</th>
                        <th nzAlign="center">作业项目</th>
                        <th nzAlign="center" nzWidth="100px">周期</th>
                        <th nzAlign="center" nzWidth="100px">单位</th>
                        <th nzAlign="center" nzWidth="100px">工作数量</th>
                        <th nzAlign="center" nzWidth="100px">合计工时</th>
                        <th nzAlign="center" nzWidth="300px">工作设备名称</th>
                        <th nzAlign="center" nzWidth="300px">备注</th>
                        <th nzAlign="center" nzWidth="150px">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <ng-container *ngFor="let item2 of chejianTable3.data;index as i">
                        <tr *ngIf="item2.RN" [tabindex]="i">
                            <td nzAlign="center">{{item2.RN}}</td>
                            <td style="display:none">{{item2.N_DID}}</td>
                            <td [attr.rowspan]="item2.VC_CLASS_Count" *ngIf="item2.VC_CLASS_Start">
                                {{item2.VC_CLASS}}
                            </td>
                            <td [attr.rowspan]="item2.VC_ITEM$NAME_Count" *ngIf="item2.VC_ITEM$NAME_Start">
                                {{item2.VC_ITEM$NAME}}
                            </td>
                            <td nzAlign="center" [attr.rowspan]="item2.VC_RECYCLE$DESC_Count"
                                *ngIf="item2.VC_RECYCLE$DESC_Start">
                                {{item2.VC_RECYCLE$DESC}}
                            </td>
                            <td nzAlign="center" [attr.rowspan]="item2.VC_UNIT_Count" *ngIf="item2.VC_UNIT_Start">
                                {{item2.VC_UNIT}}</td>
                            <td nzAlign="center" [attr.rowspan]="item2.DEVSUMS_Count" *ngIf="item2.DEVSUMS_Start">
                                {{item2.DEVSUMS}}
                            </td>
                            <td nzAlign="center">{{item2.TOTLEWT}}</td>
                            <td nzAlign="center">
                                <div [innerHTML]="item2.REDEVS"></div>
                            </td>
                            <!--根据作业项目来合并备注-->
                            <td [attr.rowspan]="item2.VC_ITEM$NAME_Count" *ngIf="item2.VC_ITEM$NAME_Start">
                                <div [innerHTML]="item2.REVC_NOTE"></div>
                            </td>
                            <!--根据作业项目来合并操作-->
                            <td nzAlign="center" [attr.rowspan]="item2.VC_ITEM$NAME_Count"
                                *ngIf="item2.VC_ITEM$NAME_Start">
                                <button (click)="chejianData4(i,item2.N_ITEM$ID,item2.N_ID,'view')" nz-button
                                    nzType="primary" nzSize="small" nzGhost>
                                    <i nz-icon nzType="file-text"></i> 查看
                                </button>
                            </td>
                        </tr>
                    </ng-container>
                </tbody>
            </nz-table>
        </div>
        <div class="pageWrap">
            每页
            <nz-select [(ngModel)]="listselectedValue" (ngModelChange)="listselectedChange()">
                <nz-option nzValue="10" nzLabel="10"></nz-option>
                <nz-option nzValue="50" nzLabel="50"></nz-option>
                <nz-option nzValue="100" nzLabel="100"></nz-option>
                <nz-option nzValue="200" nzLabel="200"></nz-option>
            </nz-select> 条&nbsp;&nbsp;&nbsp;总共<span class="pageTotal">{{pageTotal2}}</span>条
        </div>
        <div class="pageInation">
            <nz-pagination [nzPageSize]="listselectedValue" [nzPageIndex]="pageIndexTable2" [nzTotal]="rowTotalTable2"
                (nzPageIndexChange)="rowChangeTable2($event)"></nz-pagination>
        </div>
    </div>

    <app-addyear *ngIf="addYearVisible" (yearCloseModal)="yearHideModal()" (yearReloadData)="reload()"></app-addyear>

    <app-operateyear *ngIf="operateYearVisible" [operateType]="operateyearData.type"
        [operateTitle]="operateyearData.title" [operateData]="operateyearData.data" [operateVccj]="tabsTypevcCj"
        (operateCloseModal)="operateHideModal()" (operateReloadData)="reload()"></app-operateyear>

    <app-ststusyear *ngIf="statusYearVisible" [statusType]="'year'" [statusNid]="statusYearNid"
        (statusCloseModal)="statusHideModal()">
    </app-ststusyear>

    <app-addwork *ngIf="addWorkVisible" [addWorkYearPlaceId]="placeId" [addWorkYearNid]="statusYearNid"
        (addWorkCloseModal)="addWorkHideModal()" (addWorkReloadData)="backstep2()">
    </app-addwork>
</div>